<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //[...]扩展运算符能将数组为逗号分隔[参数序列]
        const boys = ['aaa', 'cc', 'vvvv'];

        function chun() {
            console.log(arguments);
        }
        chun(...boys); //chun('aaa', 'cc', 'vvvv')
        //chun(boys)    这样相当于直传进了一个参数，如果使用  ...boys相当于传三个参数
    </script>
</body>

</html>